/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entidade;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author linton
 */
@Entity
@Table(name = "saidas")
@NamedQueries({@NamedQuery(name = "Saidas.findAll", query = "SELECT s FROM Saidas s"), @NamedQuery(name = "Saidas.findByIdSaidas", query = "SELECT s FROM Saidas s WHERE s.idSaidas = :idSaidas"), @NamedQuery(name = "Saidas.findByCaixaidCaixa", query = "SELECT s FROM Saidas s WHERE s.caixaidCaixa = :caixaidCaixa"), @NamedQuery(name = "Saidas.findByDescricao", query = "SELECT s FROM Saidas s WHERE s.descricao = :descricao"), @NamedQuery(name = "Saidas.findByFormaSaida", query = "SELECT s FROM Saidas s WHERE s.formaSaida = :formaSaida"), @NamedQuery(name = "Saidas.findByValor", query = "SELECT s FROM Saidas s WHERE s.valor = :valor")})
public class Saidas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idSaidas")
    private Integer idSaidas;
    @Basic(optional = false)
    @Column(name = "Caixa_idCaixa")
    private int caixaidCaixa;
    @Column(name = "Descricao")
    private String descricao;
    @Column(name = "FormaSaida")
    private String formaSaida;
    @Column(name = "Valor")
    private Integer valor;

    public Saidas() {
    }

    public Saidas(Integer idSaidas) {
        this.idSaidas = idSaidas;
    }

    public Saidas(Integer idSaidas, int caixaidCaixa) {
        this.idSaidas = idSaidas;
        this.caixaidCaixa = caixaidCaixa;
    }

    public Integer getIdSaidas() {
        return idSaidas;
    }

    public void setIdSaidas(Integer idSaidas) {
        this.idSaidas = idSaidas;
    }

    public int getCaixaidCaixa() {
        return caixaidCaixa;
    }

    public void setCaixaidCaixa(int caixaidCaixa) {
        this.caixaidCaixa = caixaidCaixa;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public String getFormaSaida() {
        return formaSaida;
    }

    public void setFormaSaida(String formaSaida) {
        this.formaSaida = formaSaida;
    }

    public Integer getValor() {
        return valor;
    }

    public void setValor(Integer valor) {
        this.valor = valor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idSaidas != null ? idSaidas.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Saidas)) {
            return false;
        }
        Saidas other = (Saidas) object;
        if ((this.idSaidas == null && other.idSaidas != null) || (this.idSaidas != null && !this.idSaidas.equals(other.idSaidas))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entidade.Saidas[idSaidas=" + idSaidas + "]";
    }

}
